# models/page.py
from enum import Enum


class PageType(Enum):
    ORDER = "点餐页面"
    MALL = "商城页面"
    POINTS = "积分兑换页面"


class Page:
    def __init__(self, name, page_type: PageType):
        self.name = name
        self.type = page_type  # 使用枚举类型

    @property
    def display_name(self):
        return self.type.value
